package com.s3.khospitalds.controller;

import com.s3.khospitalds.common.R;
import com.s3.khospitalds.service.ProvincesService;
import com.s3.khospitalds.service.impl.ProvincesServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: xw
 * @CreateTime: 2025/3/5
 * @Description: 省份
 * @Version: 1.0
 */
@RestController
@CrossOrigin(origins = "*")
public class ProvincesController {
    @Autowired
    private ProvincesServiceImpl provincesService;
    @GetMapping("/getAllProvinces")
    public R getAllProvinces() {
        return new R().addData("list",provincesService.selectAllProvinces());
    }
}
